import { GCellRenderer } from "../../../../../com/mui/controls/GCellRenderer";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
import { ENpcEffect } from "../../../../../Message/Public/ENpcEffect";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { BaseItem } from "../../common/BaseItem";
import { ItemData } from "../../../resource/info/ItemData";
import { EColor } from "../../../../../Message/Public/EColor";
import { ECategory } from "../../../../../Message/Public/ECategory";
import { ERuneType } from "../../../../../Message/Public/ERuneType";
import { EProp } from "../../../../../Message/Public/EProp";
import { AIManager } from "../../../scene/ai/AIManager";
import { GModuleEvent } from "../../../mvc/GModuleEvent";
import { Cache } from "../../../cache/Cache";
import { DataEvent } from "../../../events/DataEvent";
import { MsgManager } from "../../../manager/MsgManager";
import { Language } from "../../../../../extend/language/Language";
import { AIType } from "../../../scene/ai/AIType";
import { EffectManager } from "../../../manager/EffectManager";
import { BmpToolTipSp } from "../../friends/item/BmpToolTipSp";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { ShopConfig } from "../../../resource/ShopConfig";
import { FlyFootBmp } from "../../mapUI/flyFoot/FlyFootBmp";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { RoleCache } from "../../../cache/RoleCache";
import { TaskTargetInfo } from "../../../model/TaskTargetInfo";
import { LineBox } from "../../guide/LineBox";
type int = number;
//class ExchangeInfoRenderer
    
    export  class ExchangeInfoRenderer extends GCellRenderer
    {
        constructor()
        {
            super();
            this._guildCodeList = [13600001, 14031003, 14076201, 13202100, 13203100, 13204100, 13205100, 13206100];
            this._itemArr = [];
            this._itemList = [];
            this._itemBgList = [];
            NetDispatcher.addCmdListener(ServerCommand.MoneyUpdate, this.onMoneyUpdateHandler);
            NetDispatcher.addCmdListener(ServerCommand.GuildUpdateInfo, this.onGuildUpdateInfoHandler);
            NetDispatcher.addCmdListener(ServerCommand.BackPackItemsChange, this.onSserverBagDataChangehandler);
            addEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddToStageHandler);
            addEventListener(flash.events.MouseEvent.CLICK, this.onMouseClickHandler);
            Dispatcher.addEventListener(EventName.Guide_FragmentUseExchangeOpt, this.guideExchangeOpt);
            return;
        }

        /* internal  */showItemList(arg1: Array<any>): void
        {
            var loc3=null;
            var loc4=null;
            var loc5=null;
            var loc6=null;
            var loc1=5;
            var loc2=50;
            var loc7=0;
            while (loc7 < arg1.length) 
            {
                if (loc4 = arg1[loc7]) 
                {
                    loc5 = loc4.itemInfo.item;
                    if (this._type != ENpcEffect._ENpcEffectHonsExchange) 
                    {
                        if (this._type != ENpcEffect._ENpcEffectHonsServerExchange) 
                        {
                            if (this._type != ENpcEffect._ENpcEffectMoshiExchange) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                            else if (!(loc5.color < EColor._EColorBlue && loc5.category == ECategory._ECategoryRune && !(loc5.type == ERuneType._ERuneTypeNormal))) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                        }
                        else if (loc5.color != EColor._EColorBlue) 
                        {
                            if (this._type != ENpcEffect._ENpcEffectMoshiExchange) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                            else if (!(loc5.color < EColor._EColorBlue && loc5.category == ECategory._ECategoryRune && !(loc5.type == ERuneType._ERuneTypeNormal))) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                        }
                    }
                    else if (!(!(loc5.color == EColor._EColorPurple) && !(loc5.category == ECategory._ECategoryProp && loc5.type == EProp._EPropSkillBook))) 
                    {
                        if (this._type != ENpcEffect._ENpcEffectHonsServerExchange) 
                        {
                            if (this._type != ENpcEffect._ENpcEffectMoshiExchange) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                            else if (!(loc5.color < EColor._EColorBlue && loc5.category == ECategory._ECategoryRune && !(loc5.type == ERuneType._ERuneTypeNormal))) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                        }
                        else if (loc5.color != EColor._EColorBlue) 
                        {
                            if (this._type != ENpcEffect._ENpcEffectMoshiExchange) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                            else if (!(loc5.color < EColor._EColorBlue && loc5.category == ECategory._ECategoryRune && !(loc5.type == ERuneType._ERuneTypeNormal))) 
                            {
                                if (this._itemList.length >= 8) 
                                {
                                    break;
                                }
                                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                                (loc6 = new BaseItem()).setSize(32, 32);
                                loc6.x = loc1 + 3;
                                loc6.y = loc2 + 3;
                                loc6.isDragAble = false;
                                loc6.isDropAble = false;
                                loc6.itemData = new ItemData(loc5.code);
                                addChild(loc6);
                                loc1 = loc1 + 42;
                                this._itemList.push(loc6);
                                this._itemBgList.push(loc3);
                            }
                        }
                    }
                }
                ++loc7;
            }
            return;
        }

        /* internal  */showGuildItemList(arg1: Array<any>): void
        {
            var loc3=null;
            var loc4=null;
            var loc1=5;
            var loc2=50;
            var loc5=0;
            while (loc5 < arg1.length) 
            {
                loc3 = ObjCreate.createBitmap(ImagesConst.PackItemBg, loc1, loc2, this);
                (loc4 = new BaseItem()).setSize(32, 32);
                loc4.x = loc1 + 3;
                loc4.y = loc2 + 3;
                loc4.itemData = new ItemData(arg1[loc5]);
                addChild(loc4);
                loc1 = loc1 + 42;
                ++loc5;
            }
            return;
        }

        /* internal  */getShopId(arg1: int): int
        {
            var loc1=arg1.toString().substring(1);
            return int(loc1);
        }

        /* internal  */onExchangeLinkHandler(arg1: Object /* flash.events.TextEvent */): void
        {
            var loc1=this._type;
            switch (loc1) 
            {
                case ENpcEffect._ENpcEffectItemExchangeShop1: case ENpcEffect._ENpcEffectZhuXianPiecesExchange: case ENpcEffect._ENpcEffectHonsExchange: case ENpcEffect._ENpcEffectHonsServerExchange: case ENpcEffect._ENpcEffectAthleticsExchange: case ENpcEffect._ENpcEffectMoshiExchange:
                {
                    AIManager.onAutoPathAIControl(this._targetInfo);
                    break;
                }
                case GModuleEvent.GuildExchangType:
                {
                    if (Cache.instance.guild.myGuildInfo == null) 
                    {
                        Dispatcher.dispatchEvent(new DataEvent(EventName.GuildListWindowOpen));
                        MsgManager.showRollTipsMsg(Language.getString(30181));
                    }
                    else 
                    {
                        Dispatcher.dispatchEvent(new DataEvent(EventName.GuildOpenShop));
                    }
                    Dispatcher.dispatchEvent(new DataEvent(EventName.PlayerModuleOperate));
                    break;
                }
            }
            return;
        }

        /* internal  */onLinkTxtClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            arg1.stopImmediatePropagation();
            return;
        }

        /* internal  */onFlyFootClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            AIManager.onAIControl(this._targetInfo, AIType.AI_Convey);
            Dispatcher.dispatchEvent(new DataEvent(EventName.PlayerModuleOperate));
            arg1.stopImmediatePropagation();
            return;
        }

        /* internal  */onMoneyUpdateHandler(arg1: Object): void
        {
            var loc1=this._type;
            switch (loc1) 
            {
                case ENpcEffect._ENpcEffectHonsExchange:
                {
                    this._numTxt.text = Cache.instance.role.money.honour + "";
                    break;
                }
                case ENpcEffect._ENpcEffectAthleticsExchange:
                {
                    this._numTxt.text = Cache.instance.role.money.arena + "";
                    break;
                }
                case ENpcEffect._ENpcEffectHonsServerExchange:
                {
                    this._numTxt.text = Cache.instance.role.money.interHonour + "";
                    break;
                }
                case ENpcEffect._ENpcEffectMoshiExchange:
                {
                    this._numTxt.text = Cache.instance.role.money.magicStone + "";
                    break;
                }
            }
            return;
        }

        /* internal  */onGuildUpdateInfoHandler(arg1: Object): void
        {
            if (this._type == GModuleEvent.GuildExchangType) 
            {
                this._numTxt.text = Cache.instance.guild.myGuildInfo != null ? Cache.instance.guild.myGuildInfo.contribution + "" : "0";
            }
            return;
        }

        /* internal  */onSserverBagDataChangehandler(arg1: Object): void
        {
            var loc1=this._type;
            switch (loc1) 
            {
                case ENpcEffect._ENpcEffectItemExchangeShop1:
                {
                    this._numTxt.text = this.getPropNumber(14030003, 14031003) + "";
                    break;
                }
                case ENpcEffect._ENpcEffectZhuXianPiecesExchange:
                {
                    this._numTxt.text = this.getPropNumber(14031017, 14031023) + "";
                    break;
                }
            }
            return;
        }

        /* internal  */getPropNumber(arg1: int, arg2: int): int
        {
            var loc2=null;
            var loc1=Cache.instance.pack.backPackCache.getAllItems();
            var loc3=0;
            var loc4=0;
            while (loc4 < loc1.length) 
            {
                if (loc1[loc4] != null) 
                {
                    if ((loc2 = loc1[loc4]).itemInfo.item.code == arg1 || loc2.itemInfo.item.code == arg2) 
                    {
                        loc3 = loc3 + loc2.itemAmount;
                    }
                }
                ++loc4;
            }
            return loc3;
        }

        /* internal  */onAddToStageHandler(arg1: Object /* flash.events.Event */): void
        {
            removeEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddToStageHandler);
            this.parent.addEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.onRemoveFromStageHandler);
            return;
        }

        /* internal  */onMouseClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._type == GModuleEvent.GuildExchangType) 
            {
                MsgManager.showRollTipsMsg(Language.getString(30183));
            }
            else 
            {
                MsgManager.showRollTipsMsg(Language.getString(30182));
            }
            return;
        }

        /* internal  */onRemoveFromStageHandler(arg1: Object /* flash.events.Event */): void
        {
            if (this._lineBox && this._lineBox.parent == this) 
            {
                EffectManager.disposeLineBox(this._lineBox);
            }
            return;
        }

        protected /* override */ configUI(): void
        {
            super.configUI();
            this._roleCache = Cache.instance.role;
            this._baseItem = new BaseItem();
            this._baseItem.move(8, 10);
            this._baseItem.setSize(32, 32);
            this._bmpToolTipSp = new BmpToolTipSp();
            this._bmpToolTipSp.x = 8;
            this._bmpToolTipSp.y = 10;
            this._titleImg = new Object /* flash.display.Bitmap */();
            this._titleImg.x = 45;
            this._titleImg.y = 5;
            addChild(this._titleImg);
            var loc1=ObjCreate.createTextField("", 160, 7, 60, 20, this);
            loc1.htmlText = Language.getString(30170);
            this._numTxt = ObjCreate.createTextField("0", 220, 7, 100, 20, this, GlobalStyle.textFormat2);
            var loc2=ObjCreate.createBitmap(ImagesConst.PackItemBg, 5, 7, this);
            this._linkTxt = ObjCreate.createTextField("", 290, 30, 80, 20, this, GlobalStyle.textFormat5);
            this._linkTxt.addEventListener(flash.events.TextEvent.LINK, this.onExchangeLinkHandler);
            this._linkTxt.addEventListener(flash.events.MouseEvent.CLICK, this.onLinkTxtClickHandler);
            this._useTipTxt = ObjCreate.createTextField("", 45, 30, 250, 20, this);
            var loc3=ObjCreate.createBg(0, 98, 370, 2, this, ImagesConst.SplitLine);
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=0;
            var loc2=null;
            super.data = arg1;
            this._type = arg1.data as int;
            if (this._bmpToolTipSp && this._bmpToolTipSp.parent) 
            {
                removeChild(this._bmpToolTipSp);
            }
            if (this._baseItem && this._baseItem.parent) 
            {
                removeChild(this._baseItem);
            }
            var loc3=this._type;
            switch (loc3) 
            {
                case ENpcEffect._ENpcEffectItemExchangeShop1:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectSoulFragmentExchange);
                    this._useTipTxt.htmlText = Language.getString(30171);
                    addChild(this._baseItem);
                    this._baseItem.itemData = new ItemData(14031003);
                    this._numTxt.text = this.getPropNumber(14030003, 14031003) + "";
                    break;
                }
                case ENpcEffect._ENpcEffectZhuXianPiecesExchange:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectSoulFragmentExchange);
                    this._useTipTxt.htmlText = Language.getString(30172);
                    addChild(this._baseItem);
                    this._baseItem.itemData = new ItemData(14031017);
                    this._numTxt.text = this.getPropNumber(14031017, 14031023) + "";
                    break;
                }
                case ENpcEffect._ENpcEffectHonsExchange:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectHonsExchange);
                    this._useTipTxt.htmlText = Language.getString(30173);
                    addChild(this._bmpToolTipSp);
                    this._bmpToolTipSp.toolTipData = Language.getString(30174);
                    this._numTxt.text = Cache.instance.role.money.honour + "";
                    break;
                }
                case ENpcEffect._ENpcEffectHonsServerExchange:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectHonsServerExchange);
                    this._useTipTxt.htmlText = Language.getString(30199);
                    addChild(this._bmpToolTipSp);
                    this._bmpToolTipSp.toolTipData = Language.getString(30200);
                    this._numTxt.text = Cache.instance.role.money.interHonour + "";
                    break;
                }
                case ENpcEffect._ENpcEffectAthleticsExchange:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectAthleticsExchange, 400101);
                    this._useTipTxt.htmlText = Language.getString(30175);
                    addChild(this._bmpToolTipSp);
                    this._bmpToolTipSp.toolTipData = Language.getString(30176);
                    this._numTxt.text = Cache.instance.role.money.arena + "";
                    break;
                }
                case ENpcEffect._ENpcEffectMoshiExchange:
                {
                    this._shopCode = this.getShopId(this._type);
                    this._targetInfo = Cache.instance.scene.getNpcByEffect(ENpcEffect._ENpcEffectMoshiExchange, 400101);
                    this._useTipTxt.htmlText = Language.getString(30272);
                    addChild(this._bmpToolTipSp);
                    this._numTxt.text = Cache.instance.role.money.magicStone + "";
                    break;
                }
                case GModuleEvent.GuildExchangType:
                {
                    this._useTipTxt.htmlText = Language.getString(30177);
                    addChild(this._bmpToolTipSp);
                    this._bmpToolTipSp.toolTipData = Language.getString(30178);
                    this._numTxt.text = Cache.instance.guild.myGuildInfo != null ? Cache.instance.guild.myGuildInfo.contribution + "" : "0";
                    break;
                }
            }
            if (this._shopCode == -1) 
            {
                if (this._linkTxt.text == "") 
                {
                    this._linkTxt.htmlText = Language.getString(30180);
                    this.showGuildItemList(this._guildCodeList);
                }
            }
            else 
            {
                loc1 = 0;
                while (loc1 < this._itemList.length) 
                {
                    if (this._itemList[loc1] && (this._itemList[loc1] as Object /* flash.display.DisplayObject */).parent) 
                    {
                        removeChild(this._itemList[loc1]);
                    }
                    if (this._itemBgList[loc1] && (this._itemBgList[loc1] as Object /* flash.display.DisplayObject */).parent) 
                    {
                        removeChild(this._itemBgList[loc1]);
                    }
                    ++loc1;
                }
                this._itemList.splice(0);
                this._itemBgList.splice(0);
                this._linkTxt.htmlText = Language.getString(30179);
                loc2 = ShopConfig.instance.getShopByName(this._shopCode);
                this._itemArr = Cache.instance.shop.getShopItemByCareer(this._roleCache.entityInfo.career, loc2);
                this.showItemList(this._itemArr);
                if (this._flyFootBmp == null) 
                {
                    this._flyFootBmp = new FlyFootBmp();
                    this._flyFootBmp.x = 344;
                    this._flyFootBmp.y = 30;
                    this._flyFootBmp.addEventListener(flash.events.MouseEvent.CLICK, this.onFlyFootClickHandler);
                    addChild(this._flyFootBmp);
                }
            }
            LoaderHelp.addResCallBack(ResFileConst.exchange, this.onResLoaded);
            return;
        }

        /* internal  */onResLoaded(): void
        {
            var loc1=this._type;
            switch (loc1) 
            {
                case ENpcEffect._ENpcEffectItemExchangeShop1:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_fumo);
                    break;
                }
                case ENpcEffect._ENpcEffectZhuXianPiecesExchange:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_zhuxian);
                    break;
                }
                case ENpcEffect._ENpcEffectHonsExchange:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_honor);
                    this._bmpToolTipSp.imageName = ImagesConst.honorImg;
                    break;
                }
                case ENpcEffect._ENpcEffectHonsServerExchange:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_serverHonor);
                    this._bmpToolTipSp.imageName = ImagesConst.serverHonorImg;
                    break;
                }
                case ENpcEffect._ENpcEffectAthleticsExchange:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_jingji);
                    this._bmpToolTipSp.imageName = ImagesConst.athleticImg;
                    break;
                }
                case ENpcEffect._ENpcEffectMoshiExchange:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_althletic3v3);
                    this._bmpToolTipSp.imageName = ImagesConst.athletic3v3Img;
                    break;
                }
                case GModuleEvent.GuildExchangType:
                {
                    this._titleImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.title_gongxian);
                    this._bmpToolTipSp.imageName = ImagesConst.contriImg;
                    break;
                }
            }
            return;
        }

        /* internal  */guideExchangeOpt(arg1: DataEvent): void
        {
            if (this._type == ENpcEffect._ENpcEffectItemExchangeShop1) 
            {
                this._lineBox = EffectManager.getLineBox(363, 96, [16711680, 16776960], 0.5, 2, 1);
                this._lineBox.x = 2;
                this._lineBox.y = 3;
                this.addChild(this._lineBox);
            }
            return;
        }

        /* internal */ /* var */_guildCodeList: Array<any>;

        /* internal */ /* var */_type: int;

        /* internal */ /* var */_roleCache: RoleCache;

        /* internal */ /* var */_targetInfo: TaskTargetInfo;

        /* internal */ /* var */_shopCode: int=-1;

        /* internal */ /* var */_itemArr: Array<any>;

        /* internal */ /* var */_linkTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_flyFootBmp: FlyFootBmp;

        /* internal */ /* var */_titleImg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_useTipTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_numTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_baseItem: BaseItem;

        /* internal */ /* var */_bmpToolTipSp: BmpToolTipSp;

        /* internal */ /* var */_itemBgList: Array<any>;

        /* internal */ /* var */_lineBox: LineBox;

        /* internal */ /* var */_itemList: Array<any>;
    }
